package com.demo.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author WuLiangHang
 */
public class MyServletContextListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("创建ServletContext对象");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("销毁ServletContext对象");
    }
}
